package com.myblog.controller;

import com.myblog.annotation.Log;
import com.myblog.domain.GlobalResponse;
import com.myblog.services.CategoryService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
@RestController
@RequestMapping("/category")
@Api(tags = "分类控制器")
public class CategoryController {

    @Resource
    CategoryService categoryService;
    @RequestMapping("/getCategoryList")
    @Log(BusinessName = "获取分类信息")
    @ApiOperation(value = "获取分类信息")
    public GlobalResponse getCategoryList(){
        return categoryService.getCategoryList();
    }
}
